import java.util.Scanner;

public class Five {

	public static void main(String[] args) {
		int a;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNextInt()) {
			a=scan.nextInt();
			if(a==0)
				System.out.println("32");
			else
				System.out.println(32 - Integer.toBinaryString(a).length());
		}
		scan.close();
	}
}